package com.meituan.sdk.model.ddzh.common.transferOppoiidToOpenShopUuids;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* op_poi_id转换为open_shop_uuid
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/transfer/OpPoiIdToOpenShopUuid",
    businessId = 58,
    apiVersion = "10000",
    apiName = "transfer_oppoiid_to_open_shop_uuids",
    needAuth = false
)
public class TransferOppoiidToOpenShopUuidsRequest implements MeituanRequest<List<ShopToOpenShopMappingDTO>> {
    /**
    * <p data-diff-id="ct-diff-id-392c0efd-cdfd-4f41-a9a9-37e0d3edac03">原北极星的AppKey</p>
    */
    @NotBlank(message = "appKey不能为空")
    @SerializedName("appKey")
    private String appKey;
    /**
    * <p data-diff-id="ct-diff-id-2b5f8ea3-da92-4f52-bebb-ba70fc4413c2">合作中心美团门店id</p>
    */
    @NotEmpty(message = "opPoiIds不能为空")
    @SerializedName("opPoiIds")
    private List<String> opPoiIds;

    public String getAppKey() {
        return appKey;
    }
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }
    public List<String> getOpPoiIds() {
        return opPoiIds;
    }
    public void setOpPoiIds(List<String> opPoiIds) {
        this.opPoiIds = opPoiIds;
    }


    @Override
    public MeituanResponse<List<ShopToOpenShopMappingDTO>> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<List<ShopToOpenShopMappingDTO>>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TransferOppoiidToOpenShopUuidsRequest{" + "appKey=" + appKey + "," + "opPoiIds=" + opPoiIds + "}";
    }
}
